package com.example.demo;

import com.example.demo.config.LoginFilter;
import com.example.demo.config.PermissionFilter;
import com.example.demo.config.RolesFilter;
import com.example.demo.util.SpringTool;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    @Bean
    public LoginFilter loginFilter() {
        return new LoginFilter();
    }

    @Bean
    public RolesFilter rolesFilter() {
        return new RolesFilter();
    }

    @Bean
    public PermissionFilter permissionFilter() {
        return new PermissionFilter();
    }

    @Bean
    public SpringTool springTool() {
        return new SpringTool();
    }
}

